
// Copyright (c) 2023 Wang Baisheng <baisheng_wang@163.com>, Wang Shenghan. All Rights Reserved.

#pragma once

#include "include/types.h"

#define E820MAX       32
#define E820_RAM      1

extern unsigned long mem_size;

struct e820entry {
  uint64_t addr;
  uint64_t size;
  uint32_t type;
} __attribute__((packed));

struct e820map {
  uint32_t nr_entry;
  struct e820entry map[E820MAX];
};

void mm_init();

